package common.design.observer;

/**
 * Created by dong peng on 2018/1/28.
 */
public class Client {

    public static void main(String[] args) {
        Observer observer = new ObserverAImpl();
        TopicAImpl topic = new TopicAImpl();
        topic.subscribe(observer);

        topic.updateData("123456");
    }
}
